/**
 * fishing-return apis
 */
import { post, put, del } from "../utils/request";

/**
 * create fishing return
 * @param {Object} data - 数据
 * @returns
 */
export async function createFishingReturn(data) {
  const res = await post("/fishing-return", data);
  return res;
}

/**
 * update fishing return
 * @param {string} id
 * @param {Object} data
 * @returns
 */
export async function updateFishingReturn(id, data) {
  const res = await put(`/fishing-return/${id}`, data);
  return res;
}

/**
 * delete fishing return
 * @param {string} id
 * @returns
 */
export async function deleteFishingReturn(id) {
  const res = await del(`/fishing-return/${id}`);
  return res;
}
